#include "MapHandleObject.h"
#include <windows.h>

MapHandleObject MapHandleObject::instance_;


MapHandleObject& MapHandleObject::getInstance()
{
		return instance_;
}
void MapHandleObject::getCoordinate(QString lon, QString lat)
{
	
}

void MapHandleObject::setGpsPose(const GpsInfo & gps)
{

	emit updatePose(gps.lon, gps.lat,  gps.roll, gps.pitch, gps.yaw);
}

void MapHandleObject::onSendText2Html(const QString & msg)
{
	//emit updatePose(114.30 + rand()%10*1.0/5000, 30.60 + rand() % 10 * 1.0 / 5000, 0.1, 0.23, rand() % 90 );
	emit sendText(msg);
}

void MapHandleObject::onRecvMessage(const QString & msg)
{
	int a = 1;
}

void MapHandleObject::receiveText(const QString & text)
{
	//QMessageBox::aboutQt(0, tr("Qt"));
}
